$(function() {

    //  鎼滅储鏍忓鍔犲洖杞﹁Е鍙戜簨浠�
    //  flag == true 璇存槑鏄疨C绔�,鍙嶄箣绉诲姩绔�
    var userAgentInfo = navigator.userAgent;
    var Agents = ["Android", "iPhone",
        "SymbianOS", "Windows Phone",
        "iPad", "iPod"];
    var flag = true;
    for (var v = 0; v < Agents.length; v++) {
        if (userAgentInfo.indexOf(Agents[v]) > 0) {
            flag = false;
            break;
        }
    }
    if(flag == true) {
        document.getElementById("searchInput").onkeydown=keyDownSearch;
    }
    else {}
})


//  鎼滅储鏍忓鍔犲洖杞﹁Е鍙戜簨浠�
function keyDownSearch(e) {
    // 鍏煎FF鍜孖E鍜孫pera
    var theEvent = e || window.event;
    var code = theEvent.keyCode || theEvent.which || theEvent.charCode;
    if (code == 13) {
        var searchInput = $("#searchInput").val();
        window.location.href = contentPath+"/pc/searchListPc/view.do?keyword="+searchInput;
        return false;
    }
    return true;
}